<%@ page language="java" import="java.util.Optional" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>新增/编辑</title>
</head>
<body>
<form action="/save" method="post" accept-charset="utf-8" onsubmit="document.charset='utf-8'">
    <table>
        <input name="id" type="hidden" value="<%= Optional.ofNullable(request.getParameter("id")).orElse("0") %>"/>
        <tr>
            <td>姓名:<input name="name" value="<%= Optional.ofNullable( request.getParameter("name")).orElse("")%>"
                          type="text"/></td>
        </tr>
        <tr>
            <td>地址:<input name="address" value="<%= Optional.ofNullable(request.getParameter("address")).orElse("")%>"
                          type="text"/></td>
        </tr>
        <tr>
            <td>手机号:<input name="phone" value="<%= Optional.ofNullable(request.getParameter("phone")).orElse("")%>"
                           type="text"/></td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="提交">
            </td>
        </tr>

    </table>
</form>
</body>
</html>
